import { setStorage,removeStorage } from "@/utils/storage";
const mutations = {
    // 设置用户token
  setUserTokenByMutations: (state,value) => {
    state.systemToken = value;
    // console.log(value)
    setStorage("systemToken",value); // 保存用户信息到本地缓存
  },
  // 退出登陆
  detelToken:(state)=>{
    state.systemToken=''
    removeStorage("systemToken")
  },

  // 保存路由
  setPathByMutations: (state,value) =>{
    state.systemPath = value;
    setStorage("systemPath",value); // 保存用户信息到本地缓存
  }
}
export default mutations
